博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jquery ajax 局部table 刷新技术
阅读量:4687 次
发布时间:2019-06-09

本文共 2580 字,大约阅读时间需要 8 分钟。

点击查询:

 

 

下面先上html页面:

 

Examples

约见列表

编号 约见标题 姓名 所属地区 创建时间 操作
{$vo.userid} {$vo.title} {$vo.username} {$vo.name} {$vo.pubtime|date='Y-m-d',###} 删除
{$page}

再上jquery代码:

 

最后上php代码:

 

public function search()    {       $title=$_POST['title'];       if($title)       {            $moden=M('meet');            import("ORG.Util.Page");            $count= $moden->where("title='$title'")->count();            $Page= new Page($count,17);            $show= $Page->show();            $sql="select userid,username,city_id,name ,title,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            //$sql="select userid,username,city_id,name ,title,age,height,sex,telephone,education_id,professional,month_salary,weixin,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            $rs=$moden->query($sql);            if($rs)            {                foreach ($rs as $k => $v)                {                    $rs[$k]['sex']=$v['sex']==1?'女':'男';                    $rs[$k]['pubtime']= date('Y-m-d', $rs[$k]['pubtime']);                }                $json = array(                    'page' => $show,                    'data' => $rs                );                echo json_encode($json);            }else            {                echo '0';            }       }            }

 

转载于:https://www.cnblogs.com/hnbiao/p/jquery.html

你可能感兴趣的文章
node启动时, listen EADDRINUSE 报错;
查看>>
杭电3466————DP之01背包(对状态转移方程的更新理解)
查看>>
kafka中的消费组
查看>>
python--注释
查看>>
SQL case when else
查看>>
SYS_CONTEXT 详细用法
查看>>
Pycharm配置autopep8让Python代码更符合pep8规范
查看>>
我的第一篇博客
查看>>
【C++算法与数据结构学习笔记------单链表实现多项式】
查看>>
C#垃圾回收机制
查看>>
31、任务三十一——表单联动
查看>>
python之hasattr、getattr和setattr函数
查看>>
maven使用阿里镜像配置文件
查看>>
Copy code from eclipse to word, save syntax.
查看>>
arguments.callee的作用及替换方案
查看>>
23 Java学习之RandomAccessFile
查看>>
P2709 小B的询问
查看>>
PHP echo 和 print 语句
查看>>
第一讲 一个简单的Qt程序分析
查看>>
Centos 6.5下的OPENJDK卸载和SUN的JDK安装、环境变量配置
查看>>